Skip to content

Replace assert_almost_equal with pytest.approx - #5556

Open
NiE-d wants to merge 2 commits into
MDAnalysis:developfrom
NiE-d:modernize-test-assertion
Open

NiE-d wants to merge 2 commits into
MDAnalysis:developfrom
NiE-d:modernize-test-assertion

Conversation

@NiE-d

@NiE-d NiE-d commented Nov 21, 2026 •

Copy link
Copy Markdown

Fixes #3743

Changes made in this Pull Request:

LLM / AI generated code disclosure

  • I have read and understood MDAnalysis's AI policy in AI_POLICY.md.

LLMs or other AI-powered tools (beyond simple IDE use cases) were used in this contribution: yes

PR Checklist

  • Issue raised/referenced?
  • Tests updated/added?
  • Documentation updated/added?
  • package/CHANGELOG file updated?
  • Is your name in package/AUTHORS? (If it is not, add it!)
  • I have read and understand the current AI Policy
  • LLM/AI disclosure was updated.

Developers Certificate of Origin

I certify that I can submit this code contribution as described in the Developer Certificate of Origin, under the MDAnalysis LICENSE.

@read-the-docs-community

read-the-docs-community Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 MDAnalysis | 🛠️ Build #36070572 | 📁 Comparing eca54a2 against latest (5d5a634)

  🔍 Preview build  

2 files changed
± index.html
± documentation_pages/analysis/wbridge_analysis.html

@codecov

codecov Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.93%. Comparing base (5d5a634) to head (eca54a2).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5556   +/-   ##
========================================
  Coverage    93.93%   93.93%           
========================================
  Files          184      184           
  Lines        22680    22680           
  Branches      3228     3228           
========================================
  Hits         21304    21304           
  Misses         916      916           
  Partials       460      460           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@NiE-d
NiE-d marked this pull request as draft November 23, 2026 02:09
@NiE-d
NiE-d marked this pull request as ready for review November 23, 2026 02:09

@RMeli RMeli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #3743

Merging this PR would close issue 3743 which is not what we want because this PR only does a minor step towards closing it. Could you please change the PR description so that the issue won't be automatically closed on merge (see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue)? Thank you.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

modernize testing code

2 participants